home *** CD-ROM | disk | FTP | other *** search
- 50 rem ** initialize **
- 52 dim cl(20,40)
- 53 print"[147]":sys65517:wi=peek(781):ifwi=22thenwi=0:poke36879,238:ss=2:ph=.5
- 54 if wi=0thenaa$="vic":bb$="vic":goto60
- 55 poke53280,1:poke53281,15:ss=12:wi=8:ph=1
- 57 aa$="64[157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157]":bb$="64"
- 60 if wi=0 then cl(4,18)=1:cl(4,31)=2:cl(10,18)=3:cl(10,31)=4:goto80
- 63 fora=6to12step6:forb=17to33step16:s=646:pokes,ss
- 70 t=t+1:cl(a,b)=t:nextb,a
- 80 print"";:printtab(wi+5)"[144]shape match"
- 190 gosub3000:rem ** instructions **
- 200 gosub1000:rem ** print board **
- 210 fort=1to1000:next
- 300 rem *******************************
- 302 rem ** select shapes **
- 305 rem *******************************
- 306 k=rnd(-ti)
- 310 k=int(rnd(0)*4)+1:ifk=kkthen310
- 320 rem
- 340 fort=1to3:gosub2000:bo$=sh$(t):a=4+t:b=18:print"":gosub1170:next t
- 345 gosub1180:rem ** delay **
- 348 ifwi=0thenfort=1to3:gosub2100:bo$=sh$(t):a=4+t:b=32:print""
- 349 ifwi=0thengosub1170:nextt:goto355
- 350 fort=1to3:gosub2100:bo$=sh$(t):a=4+t:b=28:print"":gosub1170:next t
- 355 gosub1180
- 360 fort=1to3:gosub2200:bo$=sh$(t):a=10+t:b=18:print"":gosub1170:next t
- 365 gosub1180
- 370 fort=1to3:gosub2300:bo$=sh$(t):a=10+t:b=28:print"":gosub1170:next t
- 375 gosub1180
- 380 fort=1to3
- 383 onkgosub2000,2100,2200,2300
- 385 bo$=sh$(t):a= 8+t:b=3:print"":gosub1170:next t:kk=k
- 500 rem
- 550 rem end
- 600 rem *******************************
- 602 rem ** move cursor **
- 604 rem *******************************
- 605 print"":c=1:fornt=1to10
- 610 fort=1to15:bo$=chr$(63):ift/2=int(t/2)then bo$=chr$(18)+chr$(63)+chr$(146)
- 613 if wi=0then on c goto 660,673,683,687
- 615 onc goto670,675,680,685
- 620 gosub1170:print"":fortt=1to 75: nexttt:goto700
- 625 next t
- 630 bo$=chr$(32):gosub1170:print"": fortt=1to 75:nexttt:c=c+1
- 640 ifc>4thenc=1
- 650 nextnt:goto600:rem ** repeat **
- 660 a=4:b=18:l=1:goto620
- 670 a=6:b=17:l=1:goto620
- 673 a=10:b=18:l=2:goto620
- 675 a=12:b=17:l=2:goto620
- 680 a=6:b=33:l=3:goto620
- 683 a=4:b=31:l=3:goto620
- 685 a=12:b=33:l=4:goto620
- 687 a=10:b=31:l=4:goto620
- 700 rem *******************************
- 702 rem ** check for response **
- 704 rem *******************************
- 710 geta$:ifa$=""then 625
- 715 if a$="q"then print"[147]":end
- 720 ifcl(a,b)=k then800:rem correct
- 740 goto850: rem ** wrong **
- 800 rem *******************************
- 802 rem ** correct answer **
- 804 rem *******************************
- 810 bo$="yes! that's right!":a=18:gosub1174:print""
- 820 bo$="[152][144] press any key [146]":a=20:gosub1174:print""
- 825 geta$:ifa$=""then825
- 830 fora=1to23:bo$=" ":b=0:gosub1170
- 835 print"":next
- 840 goto200:rem ** re-print board **
- 850 rem *******************************
- 852 rem ** wrong answer **
- 854 rem *******************************
- 855 bo$=chr$(32):gosub1170:print""
- 860 bo$="[152][144]sorry...try again...[146]": a=18:b=10:gosub1174:print""
- 865 forw=1to1000:next
- 870 bo$=" ":a=18: b=10:gosub1174:print""
- 875 c=c+1:ifc>4thenc=1
- 880 goto 625
- 999 rem ******************************
- 1000 print"[147]"
- 1015 ifwi=0thenbo$=" [176][192][192][192][192][192][178][192][192][192][192][192][174]":a=3:b=15:gosub 1170:print"":goto1030
- 1020 a=3:b=15:bo$="[176][192][192][192][192][192][192][192][192][192][178][192][192][192][192][192][192][192][192][192][174][146]":gosub1170:print""
- 1025 rem
- 1030 fort=1to5:a=3+t:b=15
- 1035 if wi=0thenbo$=" [221][146] [221][146] [221][146]":gosub1170:print"":goto1045
- 1040 bo$="[194][146] [194][146] [194][146]":gosub1170:print""
- 1045 next t
- 1047 ifwi=0thena=9:b=15:bo$=" [171][192][192][192][192][192][219][192][192][192][192][192][179][146]":gosub1170:print"":goto1060
- 1050 a=9:b=15:bo$="[171][192][192][192][192][192][192][192][192][192][219][192][192][192][192][192][192][192][192][192][179][146]":gosub1170:print""
- 1060 fort=1to5:a=9+t:b=15
- 1065 ifwi=0thenbo$=" [221][146] [221][146] [221][146]":gosub1170:print"":goto1073
- 1070 bo$="[194][146] [194][146] [194][146]":gosub1170:print""
- 1073 nextt
- 1078 a=15:b=15:ifwi=0thenbo$=" [173][192][192][192][192][192][177][192][192][192][192][192][189][146]":gosub1170:print"":goto1090
- 1080 bo$="[173][192][192][192][192][192][192][192][192][192][177][192][192][192][192][192][192][192][192][192][189][146]":gosub1170:print""
- 1090 bo$=t$:a=20:b=13:gosub1170:print""
- 1093 printtab(wi)" type (q) to quit."
- 1095 return
- 1100 rem **************************+***
- 1110 rem ** print **
- 1111 rem ******************************
- 1170 fori=1toa:print"";:next:printtab(b*ph)bo$:return
- 1174 fori=1toa:print"";:next:printtab(wi)bo$:return
- 1175 rem
- 1180 forx=1to500:next:return
- 2000 rem
- 2015 sh$(1)=" [184][184][184]"
- 2020 sh$(2)=" "
- 2025 sh$(3)=" ":return
- 2100 rem
- 2115 sh$(1)="[156] "
- 2120 sh$(2)=" "
- 2125 sh$(3)=" ":return
- 2200 rem
- 2215 sh$(1)="[144][169]"
- 2220 sh$(2)="[169] "
- 2225 sh$(3)="[169] ":return
- 2300 rem
- 2315 sh$(1)="[169][223]"
- 2320 sh$(2)="[169] [223]"
- 2325 ifwi=8thensh$(3)="[169] [223]":return
- 2330 sh$(3)="":return
- 3000 print"";:printtab(wi)" instructions (y/n) ?"
- 3020 geta$:ifa$=""then3020
- 3030 ifa$="n"then3200
- 3040 ifa$="y"thenprint"[147]":goto 3100
- 3050 goto3020
- 3100 printtab(wi)"in shape match,the "aa$;:printtab(wi)"will print a shape on"
- 3110 printtab(wi)"the left side of the":printtab(wi)"screen. the student"
- 3115 printtab(wi)"will find 4 different":printtab(wi)"shapes on the right"
- 3120 printtab(wi)"side of the screen,":printtab(wi)"one of which will"
- 3130 printtab(wi)"match the shape on":printtab(wi)"the left."
- 3140 printtab(wi)"when the ?[146] is":printtab(wi)"next to the shape he"
- 3150 printtab(wi)"or she thinks is":printtab(wi)"correct, the student"
- 3155 printtab(wi)"should press any key."
- 3156 printtab(wi)"the ";bb$;" will evaluate"
- 3160 printtab(wi)"the answer and let":printtab(wi)"the student know how"
- 3165 printtab(wi)"he did. type q[146] to":printtab(wi)"end the program."
- 3190 printtab(wi)"press any key to play";
- 3195 geta$:ifa$=""then3195
- 3196 print"[147]"chr$(142)
- 3200 return
-